package com.audaque.springboot.foshanupload.web.mbactdemo.mpgt.model.pojo;


import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableCharset;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableEngine;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.*;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 用户信息表
 *
 * </p>
 *
 * @author zgb
 * @since 2023-03-01
 */
@TableCharset(MySqlCharsetConstant.UTF8)
@TableEngine(MySqlEngineConstant.InnoDB)
@Table(name = "sys_user", comment = "用户信息")

@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SysUserMpgtPojo implements Serializable {


    private static final long serialVersionUID = 1L;
    @Column(name = "user_id", comment = "用户ID", isAutoIncrement = true, isKey = true, isNull = false,type = MySqlTypeConstant.BIGINT, length = 32)
    private Long userId;


    @Column(name = "dept_id", comment = "部门ID",type = MySqlTypeConstant.BIGINT, length = 32)
    private Long deptId;


    @Column(name = "user_name", comment = "用户账号",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String userName;

    @Column(name = "nick_name", comment = "用户昵称",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String nickName;


    @Column(name = "user_type", comment = "用户类型",type = MySqlTypeConstant.VARCHAR, length = 11)
    private String userType;


    @Column(name = "email", comment = "用户邮箱",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String email;


    @Column(name = "phonenumber", comment = "手机号码",type = MySqlTypeConstant.VARCHAR, length = 15)
    private String phonenumber;


    @Column(name = "sex", comment = "用户性别（0男 1女 2未知）",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String sex;


    @Column(name = "avatar", comment = "头像地址",type = MySqlTypeConstant.VARCHAR, length = 320)
    private String avatar;


    @Column(name = "password", comment = "密码",type = MySqlTypeConstant.VARCHAR, length = 320)
    private String password;


    @Column(name = "status", comment = "帐号状态（0正常 1停用）",type = MySqlTypeConstant.VARCHAR, length = 11)
    private String status;


    @Column(name = "del_flag", comment = "删除标志（0代表存在 2代表删除）",type = MySqlTypeConstant.VARCHAR, length = 11)
    private String delFlag;


    @Column(name = "login_ip", comment = "最后登录IP",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String loginIp;


    @Column(name = "login_date", comment = "最后登录时间",type = MySqlTypeConstant.DATETIME)
    private Date loginDate;


    @Column(name = "create_by", comment = "创建者",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String createBy;


    @Column(name = "create_time",type = MySqlTypeConstant.DATETIME, comment = "创建时间")
    private Date createTime;


    @Column(name = "update_by", comment = "更新者",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String updateBy;


    @Column(name = "update_time",type = MySqlTypeConstant.DATETIME, comment = "更新时间")
    private Date updateTime;


    @Column(name = "remark", comment = "备注",type = MySqlTypeConstant.VARCHAR, length = 32)
    private String remark;


    @Column(name = "tenant_id", comment = "租户ID",type = MySqlTypeConstant.BIGINT, length = 32)
    private Long tenantId;


    @Column(name = "table_year", comment = "表年",type = MySqlTypeConstant.BIGINT, length = 8)
    private Long tableYear;
}

